/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package rigo.ricard.pris.rs.ac.uns.dmi.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link rigo.ricard.pris.rs.ac.uns.dmi.service.http.CarPictureServiceSoap}.
 *
 * @author    Rigo Richard
 * @see       rigo.ricard.pris.rs.ac.uns.dmi.service.http.CarPictureServiceSoap
 * @generated
 */
public class CarPictureSoap implements Serializable {
	public static CarPictureSoap toSoapModel(CarPicture model) {
		CarPictureSoap soapModel = new CarPictureSoap();

		soapModel.setCarPicureId(model.getCarPicureId());
		soapModel.setAdId(model.getAdId());
		soapModel.setFileName(model.getFileName());

		return soapModel;
	}

	public static CarPictureSoap[] toSoapModels(CarPicture[] models) {
		CarPictureSoap[] soapModels = new CarPictureSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static CarPictureSoap[][] toSoapModels(CarPicture[][] models) {
		CarPictureSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new CarPictureSoap[models.length][models[0].length];
		}
		else {
			soapModels = new CarPictureSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static CarPictureSoap[] toSoapModels(List<CarPicture> models) {
		List<CarPictureSoap> soapModels = new ArrayList<CarPictureSoap>(models.size());

		for (CarPicture model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new CarPictureSoap[soapModels.size()]);
	}

	public CarPictureSoap() {
	}

	public long getPrimaryKey() {
		return _carPicureId;
	}

	public void setPrimaryKey(long pk) {
		setCarPicureId(pk);
	}

	public long getCarPicureId() {
		return _carPicureId;
	}

	public void setCarPicureId(long carPicureId) {
		_carPicureId = carPicureId;
	}

	public long getAdId() {
		return _adId;
	}

	public void setAdId(long adId) {
		_adId = adId;
	}

	public String getFileName() {
		return _fileName;
	}

	public void setFileName(String fileName) {
		_fileName = fileName;
	}

	private long _carPicureId;
	private long _adId;
	private String _fileName;
}